// 个体配种接口
import breeding from "@/api/axios";
export default {

  // 分页查询
  postPageBreed(params) {
    return breeding.sheepOut.post('/breeding/breeding/v2/raiseRecord/queryPageByCondition', params)
  },

  // 添加
  postAddBreed(params) {
    return breeding.sheepOut.post('/breeding/breeding/v2/raiseRecord/add', params)
  },

  // 删除 /breeding/breeding/v2/raiseRecord/delByIdList
  postDelByIdList(params) {
    return breeding.sheepOut.post('/breeding/breeding/v2/raiseRecord/delByIdList', params)
  },

  // 条件查询
  postQueryByCondition(params) {
    return breeding.sheepOut.post('/breeding/breeding/v2/raiseRecord/queryByCondition', { params })
  },
  postDelAbleByIdList() {
    return breeding.sheepOut.post('/breeding/breeding/v2/raiseRecord/queryAllDeleteAbleIdList')
  },
  //
  getQueryByIdList(params) {
    return breeding.sheepOut.post("/breeding/raise/v1/queryByRaiseRecordIdList", params)
  },

  // 获取设施数据接口/bion/facility/queryByFacilityGroupId
  getQueryList(params) {
    return breeding.sheepOut.get(`/bion/facility/queryByFacilityGroupId?facilityGroupId=${params.facilityGroupId}`)
  },

  // 修改配种获取母羊 /breeding/breeding/v2/tryLove/queryAduitMale/{breed}/{raiseRecordId}
  getQueryAduitMale() {

  },

  // 接口获取试情母羊 /v1/bion/queryBionByMatrix/{breed}
  getQueryBionByMatrix(params) {
    return breeding.sheepOut.get(`/bion/v1/bion/queryBionByAduitMatrix/${params}`)
  },

  // 获取所有怀孕湖羊下拉列表/v1/bion/queryBionByStage/{breed}/{stage}
  getQueryBionByStage() {
    return breeding.sheepOut.get("/bion//v1/bion/queryBionByStage/HuSheep/ENCYESIS")
  },

  // 查询个体详细信息 /bion/v1/bion/queryBionById/{bionId}
  getQeryBionById(params) {
    return breeding.sheepOut.get(`/bion/v1/bion/queryBionById/${params}`);
  },

  // 查询组织内部所有公羊信息 /bion/v1/bion/queryBionByMale/{breed}
  getQueryBionByMale(params) {
    return breeding.sheepOut.get(`/bion/v1/bion/queryBionByMale/${params}`);
  },

  // 添加外部公羊 /bion/v1/bion/add
  postBionAdd(params) {
    return breeding.sheepOut.post("/bion/v1/bion/add", params)
  },

  // 根据合养记录ID查询信息/breeding/breeding/v1/queryById/{raiseRecordId}
  getQueryById(params) {
    return breeding.sheepOut.get(`/breeding/breeding/v1/queryById/${params}`);
  },

  // 查询组织所有公羊信息/bion/v1/bion/queryBionByMaleAll/{breed}
  getQueryBionByMaleAll(params) {
    return breeding.sheepOut.get(`/bion/v1/bion/queryBionByMaleAll/${params}`);
  },

  // 修改配种记录 /breeding/breeding/v2/raiseRecord/edit
  postEdit(params) {
    return breeding.sheepOut.post("/breeding/breeding/v2/raiseRecord/edit", params)
  },

  /**
   * @description: 查询所有个体信息
   * @return {Object}
   */
  queryBionAll(params) {
    return breeding.sheepOut.get(`/bion/v1/bion/queryBionAll/${params.breed}`);
  },
  // 条件查询 /breeding/breeding/v2/raiseRecord/queryPageByCondition
  postQueryPageByCondition(params) {
    return breeding.sheepOut.post("/breeding/breeding/v2/raiseRecord/queryPageByCondition", params)
  },
  // 添加时的公禽集合 /bion/v1/bion/queryBionByAduitMale/{breed}
  getQueryBionByAduitMale(params) {
    return breeding.sheepOut.get(`/bion/v1/bion/queryBionByAduitMale/${params}`);
  },
  // 添加时的母禽集合 /bion/v1/bion/queryBionByAduitMatrix/{breed}
  getQueryBionByAduitMatrix(params) {
    return breeding.sheepOut.get(`/bion/v1/bion/queryBionByAduitMatrix/${params}`);
  },
  // 修改时的公禽集合 /breeding/v2/tryLove/queryAduitMale/{breed}/{raiseRecordId}
  getUpdataQueryAduitMale(params) {
    return breeding.sheepOut.get(`/breeding/breeding/v2/tryLove/queryAduitMale/${params.breed}/${params.raiseRecordId}`);
  },
  // 添加时的母禽集合 /breeding/v2/tryLove/queryAduitFemale/{breed}/{raiseRecordId}
  getUpdataQueryBionByAduitMatrix(params) {
    return breeding.sheepOut.get(`/breeding/breeding/v2/tryLove/queryAduitFemale/${params.breed}/${params.raiseRecordId}`);
  },
  getID(number) {
    return breeding.sheepOut.get(`/bion/v1/bion/queryBionByNumber/${number}`);
  },
  sszu(params) {
    return breeding.sheepOut.post("/bion/facility/queryFacilityGroupAll", params)
  }
}
